import request from '@/utils/request'

// 强条登记分页
export function getList(params) {
  return request({
    url: '/strongBarRegistration/list',
    method: 'POST',
    params
  })
}

// 查询合同项目的名称
export function selectProjectName(params) {
  return request({
    url: '/projectInvocie/ProjectName',
    method: 'post',
    params
  })
}

// 添加强条登记
export function addRegistration(data) {
  return request({
    url: '/strongBarRegistration/add',
    method: 'POST',
    data
  })
}

// 查询单条
export function selectRegistration(params) {
  return request({
    url: '/strongBarRegistration/load',
    method: 'POST',
    params
  })
}

// 删除强条登记
export function deleteRegistration(data) {
  return request({
    url: '/strongBarRegistration/delete',
    method: 'post',
    data
  })
}

// 修改强条登记
export function updateRegistration(data) {
  return request({
    url: '/strongBarRegistration/update',
    method: 'post',
    data
  })
}
